project(bootstrap C)

add_executable(bootstrap main.c ini.c ini.h cfg.c cfg.h cdrom.c cdrom.h cover.c cover.h games.c games.h games_cache.c games_cache.h scanner.c scanner.h infodb.c infodb.h gamedb.c gamedb.h prep.c prep.h)
target_link_libraries(bootstrap PRIVATE sqlite3 miniz)
if(WIN32)
    set_property(TARGET bootstrap APPEND_STRING PROPERTY LINK_FLAGS " -static -static-libgcc")
endif()
set_property(TARGET bootstrap APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-rpath,/usr/sony/lib")
